package com.taichuan.selfcheck.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.taichuan.tcutils.taichuan.PrintUtils;


public class ShutdownBroadcastReceiver extends BroadcastReceiver {

    private static final String TAG = "ShutdownBroadcastReceiver";

    private static final String ACTION_SHUTDOWN = "android.intent.action.ACTION_SHUTDOWN";      //关机广播

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(ACTION_SHUTDOWN)){
            PrintUtils.get().print(PrintUtils.LogLevel.WARN,TAG,"收到关机广播");
        }
    }
}
